package y23.Apr;

import java.util.Scanner;

public class Max {
    public static int max2(int x,int y){
        return x > y ? x : y;
    }
    public static  int max3(int x,int y,int z){
        int m = max2(x,y);
        return max2(m,z);
    }
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int a = sc.nextInt();
        int b = sc.nextInt();
        int c = sc.nextInt();
        int max = max2(a,b);
        System.out.println(max);
        max = max3(a,b,c);
        System.out.println(max);
    }
}
